<template>
  <div>
    <transition name="fade" mode="out-in">
      <!-- 公共模板 -->
      <router-view></router-view>
    </transition>
  </div>
</template>

<style>

.fade-enter-active, .fade-leave-active {
  transition:opacity .2s;
}
.fade-enter, .fade-leave-to {
  opacity:0;
}
</style>
